package com.zj;

import javax.servlet.annotation.WebListener;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/hello")
public class HelloServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String param=request.getParameter("param");
        System.out.println("doGet:"+param);
        response.setHeader("content-type", "text/html;charset=UTF-8");

        response.getWriter().println("<h1>mvc00 noxml,"+param+" </h1>");
    }
}
